# -*- coding: utf-8 -*-
# @Date:   2016-04-09 14:07:33

import sys
import os
import global_var

CUR_PATH = os.path.dirname(os.path.abspath(__file__))
# 从全局中加载或创建实例
db_interface = global_var.get_value('dbinterface') if 'dbinterface' in global_var.get_keys() else global_var.DBInterface()
# db_interface = global_var.DBInterface()

if __name__ == '__main__':
	# sql = "insert INTO `event_for_stock_wechat_text` (text_id,text) VALUES (11212,'阿大撒打算的啊啊实打实%%das<p>')"
	# db_interface.stock_event_data.insert(sql)
	update = "update wechat_web.news set content = 'aaa' where id = 23"
	print(update)
	db_interface.wechat_data._execute(update)
